<?php
	// print_r($homemessage);
?>
<div id="content">
	<?php  foreach ($homemessage['statuses'] as $key => $value) : ?>
	<div class="message">
		
		<div class="messageimage">
			<?php if(!empty($value['bmiddle_pic'])): ?>
				<a href="<?php echo $value['bmiddle_pic'];?>" title="" class="thickbox">	
				<img src="<?php echo $value['bmiddle_pic'];?>" alt="" >
				</a>
			<?php endif; ?>
		</div>
		<a href="<?php echo $this->create_url('sina/details') ;?>?height=500&width=700&mid=<?php echo $value['mid'];?>" title="查看微博" class="thickbox">
		<div class="headerimg">
			<img src="<?php echo $value['user']['profile_image_url'] ?>" alt="" class = 'messageheader'>
			<span><?php echo $value['user']['screen_name'] ?></span>
		</div>
		<div class = "messagecontentinside"><?php echo $value['text'] ?></div>
		</a>
	</div>
	<?php endforeach; ?>

	<nav id="page-nav">
		<a href="<?php $this->create_url('sina/ajax' ); ?>"></a>
	</nav>
</div>